package edu.spec.wfl.week09.class2.homework.Two;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List sounds=new ArrayList();
        sounds.add("喵");
        sounds.add("嗷");
        List foods=new ArrayList();
        foods.add(new Food("鱼",10));
        foods.add(new Food("米饭",3));

        List l=new ArrayList();
        l.add(new Cat("贝贝",sounds,foods));
        l.add(new Cat("京京",sounds,foods));
        l.add(new Dog("欢欢",sounds,foods));
        l.add(new Dog("嘤嘤",sounds,foods));
        l.add(new Dog("妮妮",sounds,foods));
        l.add(new Dog("嘟嘟",sounds,foods));
    }
    Mater tom=new Mater();
}
